﻿using Project_Maverick.Controller.Input;
using Project_Maverick.GameRoot;
using Project_Maverick.Screen.Common;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Project_Maverick.Screen.Lobby.WaitingJoin
{
    public class WaitingJoin : DefaultMenu
    {
        public WaitingJoin(string gameName) : base(Background.Blue(), "JOINING GAME " + gameName, new TE_Vector2(42, 18))
        {
            CallMethod(2000, ConnectionAccepted);
        }

        public override void ReceiveLocalInputPressed(PlayerInputCommand playerInputCommand)
        {
            
        }

        public override void ReceiveLocalInputReleased(PlayerInputCommand playerInputCommand)
        {

        }

        void ConnectionAccepted()
        {
            ChangeScreen(ProjectMaverick.Screen.ChatRoom, true);
        }
    }
}